package com.zpdhy.summer.guice;

import com.google.inject.Guice;
import com.zpdhy.summer.guice.module.MainModule;
import com.zpdhy.summer.guice.service.MyApplet;

/**
 * Created by Administrator on 2017/11/20.
 */
public class App {
    /**
     * main方法的作用
     * boostrap:
     * parse command line:解析命令行参数
     * set up environment:配置环境参数
     * kick off main logic:启动主程序逻辑
     *
     * @param args
     */
    public static void main(String[] args) {
//        MyApplet applet = Configuration.getMainApplet();
//        applet.run();
        MyApplet myApplet = Guice.createInjector(new MainModule()).getInstance(MyApplet.class);
        myApplet.run();
    }
}
